package com.xiaoshuidi.cloud.module.rooms.convert.equipmentcategory;

import com.xiaoshuidi.cloud.module.rooms.controller.admin.roomequipmentcategory.vo.*;
import com.xiaoshuidi.cloud.module.rooms.pojo.EquipmentCategory;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 资产类别 Convert
 *
 * @author Link
 */

@Mapper
public interface EquipmentCategoryConvert {

    EquipmentCategoryConvert INSTANCE = Mappers.getMapper(EquipmentCategoryConvert.class);

    EquipmentCategoryRespVO convert(EquipmentCategory bean);

    EquipmentCategory convert(EquipmentCategoryCreateReqVo bean);

    EquipmentCategory convert(EquipmentCategoryUpdateReqVo bean);

    List<EquipmentCategoryPageResp> convertList(List<EquipmentCategory> bean);

    EquipmentCategoryTreeResp convert2(EquipmentCategory bean);
    List<EquipmentCategoryTreeResp> convertList2(List<EquipmentCategory> bean);

}
